package com.ruibang.glass.purchase.domain.resp;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.alibaba.excel.enums.poi.VerticalAlignmentEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @Author: songJinKang
 * @CreateTime: 2024-06-04  23:12
 * @Description: TODO
 * @Version: 1.0
 */
@Data
@ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER, verticalAlignment = VerticalAlignmentEnum.CENTER)
public class OrderItemData {

    @ApiModelProperty(value = "商品名称")
    @ExcelProperty(index = 0, value = "商品名称")
    @ColumnWidth(25)
    private String itemName;

    @ApiModelProperty(value = "规格型号")
    @ExcelProperty(index = 1, value = "规格型号")
    @ColumnWidth(25)
    private String specificationModel;

    @ApiModelProperty(value = "数量")
    @ExcelProperty(index = 2, value = "数量")
    @ColumnWidth(8)
    private Double quantity;

    @ApiModelProperty(value = "单位")
    @ExcelProperty(index = 3, value = "单位")
    @ColumnWidth(8)
    private String unit;

    @ApiModelProperty(value = "含税单价")
    @ExcelProperty(index = 4, value = "含税单价")
    @ColumnWidth(14)
    private BigDecimal taxInclusiveUnitPrice;

    @ApiModelProperty(value = "含税总价")
    @ExcelProperty(index = 5, value = "含税总价")
    @ColumnWidth(14)
    private BigDecimal taxInclusiveTotalPrice;

    @ApiModelProperty(value = "税率")
    @ExcelProperty(index = 6, value = "税率")
    @ColumnWidth(10)
    private BigDecimal taxRate;

    @ApiModelProperty(value = "不含税单价")
    @ExcelProperty(index = 7, value = "不含税单价")
    @ColumnWidth(14)
    private BigDecimal taxExclusiveUnitPrice;

    @ApiModelProperty(value = "不含税总价")
    @ExcelProperty(index = 8, value = "不含税总价")
    @ColumnWidth(14)
    private BigDecimal taxExclusiveTotalPrice;

}
